load("@rules_cc//cc:defs.bzl", "cc_test")
load("@rules_rust//rust:defs.bzl", "rust_static_library", "rust_test")

rust_static_library(
    name = "rusty",
    srcs = ["lib.rs"],
)

rust_test(
    name = "rusty_test",
    crate = ":rusty",
)

cc_test(
    name = "main",
    srcs = ["main.c"],
    deps = [":rusty"],
)
